<template>
  <div class="container">
    <!-- 头部 -->
    <Header class="header"></Header>
    <div class="main">
      <!-- 左边导航区域 -->
      <Leftsidebar class="leftS"></Leftsidebar>
      <!-- 中间内容区域 -->
      <router-view class="home"/>
    </div>
    <!-- 尾部 -->
    <Footer class="footer"></Footer>
  </div>
</template>

<script>
import Header from '../components/Header.vue'
import Leftsidebar from '../components/Leftsidebar.vue'
import Footer from '../components/Footer.vue'
export default {
  components:{
    Header,
    Leftsidebar,
    Footer
},
}
</script>


<style lang="less">
* {
  margin: 0;
}

html, body {
  margin: 0;
  height: 100%;
  width: 100%;

}
body::-webkit-scrollbar { display: none; }
.container {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.container .header {
  width: 100%;
  background-color: papayawhip;
  text-align: center;
}
 
.container .main {
  margin: 0;
  background-color: pink;
  display: flex;
  

  .leftS{
    height: 100vh;
  }

  .home{
    flex: 1;
    height: 100vh;
    overflow: auto;
  }
}

.container .footer {
  width: 100%;
  background-color: papayawhip;
  text-align: right;
  display: flex;
  flex-direction: column;
  font-family: "楷体";
}

</style>
